package com.zhanghe.study.design_pattern.flyweight_pattern;

/**
 * 享元对象
 * @author zh
 * @date 2022/10/19 11:03
 */
public class ConcreteFlyweight implements Flyweight {

    // 内部状态
    private String innerState;

    // 传入内部数据
    public ConcreteFlyweight(String state){
        this.innerState = state;
    }

    // 外部数据
    @Override
    public void operation(String state) {
        // 内部数据和外部数据进行操作
    }
}
